const defaultState = {
  text1: 100,
 
};
export default (state = defaultState, action) => {
  switch (action.type) {
    case "text1":
      let newState = JSON.parse(JSON.stringify(state));
      newState.text1 = action.value;
      return newState;
    // case "text2":
    //   let newState1 = JSON.parse(JSON.stringify(state));
    //   newState1.text1 = action.value;
    //   return newState1;
    // case "text3":
    //   let newState2 = JSON.parse(JSON.stringify(state));
    //   newState2.text1 = action.value;
    //   return newState2;
    default:
      return state;
  }
};
